package entity;

import java.math.BigDecimal;
import java.util.Date;

public class Phone {
    private int id;
    //库存
    private int inventory;
    //名字
    private String name;
    //型号
    private String model;
    //价格
    private BigDecimal price;
    //时间
    private Date time;

    public Phone() {
    }

    public Phone(int inventory, String name, String model, BigDecimal price, Date time) {
        this.inventory = inventory;
        this.name = name;
        this.model = model;
        this.price = price;
        this.time = time;
    }

    public Phone(int id, int inventory, String name, String model, BigDecimal price, Date time) {
        this.id = id;
        this.inventory = inventory;
        this.name = name;
        this.model = model;
        this.price = price;
        this.time = time;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getInventory() {
        return inventory;
    }

    public void setInventory(int inventory) {
        this.inventory = inventory;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "Phone{" +
                "id=" + id +
                ", inventory=" + inventory +
                ", name='" + name + '\'' +
                ", model='" + model + '\'' +
                ", price=" + price +
                ", time=" + time +
                '}';
    }
}
